package com.bgs.eat.roleBack.service;

import com.bgs.eat.page.PageRequest;
import com.bgs.eat.page.PageResult;
import com.bgs.eat.roleBack.entity.RoleBackEntity;

import java.util.List;

/**
 * @ClassName RoleBackService
 * @Description TODO
 * @Author cjl
 * @Date 2022/10/12 8:40
 **/
public interface RoleBackService {
    /**
    * @Author cjl
    * @Description 全查角色（模糊查角色名称）
    * @Date  9:08
    * @Return com.bgs.eat.page.PageResult
    * @param roleName
    * @param pageRequest
    */
    PageResult selectRoleBackEntity(String roleName, PageRequest pageRequest);
    /**
    * @Author cjl
    * @Description 添加或修改角色信息
    * @Date  15:46
    * @Return int
    * @param roleBackEntity
    */
    int saveOrUpdateRoleBackEntity(RoleBackEntity roleBackEntity);
    /**
    * @Author cjl
    * @Description 删除角色信息
    * @Date  15:47
    * @Return java.lang.Integer
    * @param id
    */
    Integer deleteRoleBackEntityById(Integer id);
    /**
    * @Author cjl
    * @Description +
    * @Date  8:53
    * @Return com.bgs.eat.roleBack.entity.RoleBackEntity
    * @param id
    */
    RoleBackEntity getRoleById(Integer id);
    /**
    * @Author cjl
    * @Description
    * @Date  8:53
    * @Return int
    * @param roleBackEntity
    */
    int assignPermissions(RoleBackEntity roleBackEntity);
    /**
    * @Author cjl
    * @Description
    * @Date  8:53
    * @Return java.util.List<com.bgs.eat.roleBack.entity.RoleBackEntity>

    */
    List<RoleBackEntity> roleBackEntityByRoleId();
}
